<template>
  <div class="q-pa-md row items-start q-gutter-md">
    <t-card class="my-card">
      <img src="https://cdn.quasar.dev/img/mountains.jpg" />

      <t-card-section>
        <div class="text-h6">Our Changing Planet</div>
        <div class="text-subtitle2">by John Doe</div>
      </t-card-section>

      <t-card-section class="q-pt-none">
        {{ lorem }}
      </t-card-section>
    </t-card>

    <t-card class="my-card">
      <t-img src="https://cdn.quasar.dev/img/parallax2.jpg">
        <div class="absolute-bottom text-subtitle2 text-center"> Title </div>
      </t-img>
    </t-card>

    <t-card class="my-card">
      <t-img src="https://cdn.quasar.dev/img/parallax2.jpg">
        <div class="absolute-bottom text-h6"> Title </div>
      </t-img>

      <t-card-section>
        {{ lorem }}
      </t-card-section>
    </t-card>

    <t-card class="my-card">
      <t-img src="https://cdn.quasar.dev/img/parallax2.jpg">
        <div class="text-subtitle2 absolute-top text-center"> Title </div>
      </t-img>
    </t-card>

    <t-card class="my-card">
      <t-img src="https://cdn.quasar.dev/img/parallax2.jpg">
        <div class="text-h5 absolute-bottom text-right"> Title </div>
      </t-img>
    </t-card>

    <t-card class="my-card">
      <t-item>
        <t-item-section avatar>
          <t-avatar>
            <img src="https://cdn.quasar.dev/img/avatar2.jpg" />
          </t-avatar>
        </t-item-section>

        <t-item-section>
          <t-item-label>Title</t-item-label>
          <t-item-label caption>Subhead</t-item-label>
        </t-item-section>
      </t-item>

      <img src="https://cdn.quasar.dev/img/parallax2.jpg" />
    </t-card>

    <t-card class="my-card">
      <t-img src="https://cdn.quasar.dev/img/parallax2.jpg">
        <div class="absolute-bottom">
          <div class="text-h6">Our Changing Planet</div>
          <div class="text-subtitle2">by John Doe</div>
        </div>
      </t-img>

      <t-card-actions>
        <t-btn flat>Action 1</t-btn>
        <t-btn flat>Action 2</t-btn>
      </t-card-actions>
    </t-card>
  </div>
</template>

<script>
  export default {
    setup() {
      return {
        lorem:
          'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
      };
    },
  };
</script>

<style lang="sass" scoped>
  .my-card
    width: 100%
    max-width: 250px
</style>
